<%@ page import="java.util.List"%>
<%@ page import="com.pension.model.dto.Member"%>
<%@ page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
    <title></title>
    <link rel="Stylesheet" href="/pension/styles/default.css" />
</head>
<body>

    <div id="pageContainer">
        <% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
        <div id="content">
        	<br /><br />
        	<div style='text-align:center'>
        		[&nbsp;<a href="/pension/member/deleteuser.action" style="text-decoration: none; color: #ffffff; font-weight: bold">사용자 삭제</a>&nbsp;]
        	</div>
			<br />        	
        	<table border="1" align="center" width="700px">
        		<tr style="height:30px; background-color:#4B4B4B; font-weight: bolder;">
        			<td style="text-align:center;">아이디</td>
        			<td style="text-align:center;">이메일</td>
        			<td style="text-align:center;">연락처</td>
        			<td style="text-align:center;">사용자구분</td>
        			<td style="text-align:center;">등록일자</td>
        		</tr>

				<% List<Member> members = (List<Member>)request.getAttribute("members"); %>
				<% for (Member member : members) { %>
        		<tr style="height:30px; background-color:#808080; color:#DBDBDB;">
        			<td style="text-align:center;">
        				<a href='/pension/member/views.action?memberid=<%= member.getMemberId() %>' style='text-decoration: none; color: #333333'>
        					<%= member.getMemberId() %>
        				</a>
        			</td>
        			<td style="text-align:center;"><%= member.getEmail() %></td>
        			<td style="text-align:center;"><%= member.getPhone1() %></td>
        			<td style="text-align:center;"><%= member.getUserType() %></td>
        			<td style="text-align:center;"><%= member.getRegDate() %></td>
        		</tr>
        		<% } %>
			<p style="margin-left: 340px"> ※ 아이디 클릭으로 상세보기 </p>
        	</table>
        	
        </div>
    </div>
    
</body>
</html>









